function IsShow() {
    parent.document.all.layMnAboutPingSoft.style.visibility = 'visible';
}
function IsHide() {
    parent.document.all.layMnAboutPingSoft.style.visibility = 'hidden';
}

function ReLocation(url) {
    parent.document.location.href = url
    //parent.document.all.CurrentLocation.innerText = CurrentLocationCaption; 
    //parent.document.location.href=url
}

function mOvr(src) { if (!src.contains(event.fromElement)) { src.bgColor = '#C8FB7C'; src.style.color = '#1919F8' } }
function mOut(src) { if (!src.contains(event.toElement)) { src.bgColor = '#FFFFFF'; src.style.color = '#000000' } }
function mClk(src) { if (event.srcElement.tagName == 'TD') { src.children.tags('A')[0].click(); } }

function MM_callJS(jsStr) { //v2.0
    return eval(jsStr)
}

function hasSelectRecord(CheckID) {
    var obj = document.getElementsByTagName('input');
    for (var i = 0; i < obj.length; i++) {
        if (obj[i].type == "checkbox") {
            if (IsMatch(obj[i].id, CheckID)) {
                if (obj[i].checked == true) {
                    return true;
                }
            }
        }
    }
    return false;
}
function selectAll(CheckID) {
    var obj = document.getElementsByTagName('input');
    for (var i = 0; i < obj.length; i++) {
        if (obj[i].type == "checkbox") {
            if (IsMatch(obj[i].id, CheckID)) {
                obj[i].checked = true;
            }
        }
    }
}

function unselectAll(CheckID) {
    var obj = document.getElementsByTagName('input');
    for (var i = 0; i < obj.length; i++) {
        if (obj[i].type == "checkbox") {
            if (IsMatch(obj[i].id, CheckID)) {
                if (obj[i].checked == true) obj[i].checked = false;
                else obj[i].checked = true;
            }
        }
    }
}
function IsMatch(id, ChildId) {
    var sPattern = ChildId + '.*';
    var oRegExp = new RegExp(sPattern);
    if (oRegExp.exec(id))
        return true;
    else
        return false;
}

function CheckInputFun(inputstr) {
    if (inputstr.replace(' ', '') == '') {
        return false;
    }
    return true;
}